package com.play.ballen.home.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.play.ballen.R
import com.play.ballen.home.entity.PlayCountRecordInfo
import com.yuven.baselib.utils.ResourceUtil

class PlayCountRecordAdapter(data: MutableList<PlayCountRecordInfo>) :
    BaseQuickAdapter<PlayCountRecordInfo, BaseViewHolder>(R.layout.item_play_count_record, data) {

    override fun convert(holder: BaseViewHolder, item: PlayCountRecordInfo) {
        holder.setText(
            R.id.tvCountValue,
            ResourceUtil.getString(R.string.home_property_play_count_text, item.num)
        )
        holder.setText(
            R.id.tvSportValue,
            ResourceUtil.getString(R.string.price_unit_bmt, item.money)
        )
        holder.setText(R.id.tvStartTimeValue, item.add_time)
        holder.setText(R.id.tvEndTimeValue, item.end_time)
    }

}